package com.example.demo.common;
import com.example.demo.entiy.Employee;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class pageResult<T> {
    private Long total;
    private List<T> result;

    public static <T> pageResult<T> result(Long total, List<T> result) {
        pageResult<T> tPageResult = new pageResult<>();
        tPageResult.total = total;
        tPageResult.result = result;

        return tPageResult;
    }
}
